#include<func.h>
enum
{
    FREE,
    BUSY,
};
typedef struct WorkDate_s
{
    int states; //FREE BUSY
    pid_t pid; //进程pid
    int socketpair; //主进程和紫禁城的管道

}WorkDate_t;

//create child process
int CreateWorker(int num,WorkDate_t *WorkArr);
//tcp connect  ip port psockfd
int tcpInit(char* ip,char *port,int*psockfd);
// epoll add
int epollAdd(int epfd,int fd); //需要监听sockfd
// epoll delete
int epollDelet(int epfd,int fd);
int sendfd(int sockfd,int fdtosend);
int recvfd(int sockfd, int *pfdtorecv);
